#/bin/bash
clear
make

MODULE_NAME="mhda"

mod_load=$(lsmod | grep mhda)
if [ ! -z "${mod_load}" ]
then
    rmmod "${MODULE_NAME}"
fi
dmesg -c > /dev/null 2>&1

insmod "${MODULE_NAME}.ko"

echo "======================"
dmesg
echo "======================"

make clean
